package demo.bean;

import lombok.Data;

@Data
public class Animals {

    private String name;
    private int age;

    public void speak() {
        System.out.println("animals speak...");
        eat();
    }

    public void eat() {
        System.out.println("animals eat...");
    }
}
